﻿using System;
using Nop.Core.Domain.Localization;
using Nop.Core.Domain.Seo;
using System.Collections.Generic;

namespace Nop.Core.Domain.WindAlert
{
    /// <summary>
    /// Represents a spot
    /// </summary>
    public partial class Spot : BaseEntity, ILocalizedEntity, ISlugSupported
    {
        private ICollection<SpotComment> _spotComments;
        private ICollection<Camera> _cameras;
       
        /// <summary>
        /// Gets or sets the name
        /// </summary>
        public virtual string Name { get; set; }

        /// <summary>
        /// Gets or sets a display oreder
        /// </summary>
        public virtual int DisplayOrder { get; set; }

        /// <summary>
        /// Gets or setsthe published
        /// </summary>
        public virtual bool Published { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the entity has been deleted
        /// </summary>
        public virtual bool Deleted { get; set; }

        /// <summary>
        /// Gets or sets the date and time of instance creation
        /// </summary>
        public virtual DateTime CreatedOnUtc { get; set; }

        /// <summary>
        /// Gets or sets the date and time of instance update
        /// </summary>
        public virtual DateTime UpdatedOnUtc { get; set; }

        /// <summary>
        /// Gets or sets the meta description
        /// </summary>
        public virtual string Description { get; set; }

        /// <summary>
        /// Gets or sets the meta keywords
        /// </summary>
        public virtual string MetaKeywords { get; set; }

        /// <summary>
        /// Gets or sets the meta description
        /// </summary>
        public virtual string MetaDescription { get; set; }

        /// <summary>
        /// Gets or sets the meta title
        /// </summary>
        public virtual string MetaTitle { get; set; }

        /// <summary>
        /// Gets or sets the latitude
        /// </summary>
        public virtual double lat { get; set; }

        /// <summary>
        /// Gets or sets the lobgitude
        /// </summary>
        public virtual double lng { get; set; }
        
        //station 
        /// <summary>
        /// Gets or sets is wave
        /// </summary>
        public virtual bool IsStation { get; set; }
        /// <summary>
        /// Gets or setsthe adjust time
        /// </summary>
        public virtual int StationAdjustTime { get; set; }

        /// <summary>
        /// Gets or sets the data url
        /// </summary>
        public virtual string StationDataUrl { get; set; }

        /// <summary>
        /// Gets or sets the split method
        /// </summary>
        public virtual int StationSplitMethod { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the entity Is metar station
        /// </summary>
        public virtual bool StationIsMetar { get; set; }

        //wave
        /// <summary>
        /// Gets or sets the wave data url
        /// </summary>
        public virtual string WaveDataUrl { get; set; }

        /// <summary>
        /// Gets or setsthe adjust time
        /// </summary>
        public virtual int WaveAdjustTime { get; set; }

        /// <summary>
        /// Gets or sets is wave
        /// </summary>
        public virtual bool IsWave { get; set; }

        //forecast
        /// <summary>
        /// Gets or sets is forecast
        /// </summary>
        public virtual bool IsForecast { get; set; }

        /// <summary>
        /// Gets or sets 
        /// </summary>
        public virtual bool ShowOnHome { get; set; }

        /// <summary>
        /// Gets or sets 
        /// </summary>
        public virtual bool ShowOnAviasion { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether the blog post comments are allowed 
        /// </summary>
        public bool AllowComments { get; set; }

        /// <summary>
        /// Gets or sets the total number of comments
        /// <remarks>
        /// We use this property for performance optimization (no SQL command executed)
        /// </remarks>
        /// </summary>
        public int CommentCount { get; set; }
 
        public virtual ICollection<SpotComment> SpotComments
        {
            get { return _spotComments ?? (_spotComments = new List<SpotComment>()); }
            protected set { _spotComments = value; }
        }

        public virtual ICollection<Camera> Cameras
        {
            get { return _cameras ?? (_cameras = new List<Camera>()); }
            protected set { _cameras = value; }
        }

    }
}
